import request from '../request'

//获取用户详情
export const getUserInfo = params => request.globalRequest(`/api/v1/appUser/getUserInfo`, 'GET', params, false)

//用户积分列表
export const queryUserScoreList = params => request.globalRequest(`/api/v1/appUser/queryUserScoreList`, 'POST', params)

//用户地址列表
export const queryUserAddressList = params => request.globalRequest(`/api/v1/appUser/queryUserAddressList`, 'POST', params)

//新增地址
export const addUserAddress = params => request.globalRequest(`/api/v1/appUser/userAddress/add`, 'POST', params)

//修改地址
export const editUserAddress = params => request.globalRequest(`/api/v1/appUser/userAddress/edit`, 'POST', params)

//删除地址
export const deleteUserAddress = params => request.globalRequest(`/api/v1/appUser/userAddress/delete`, 'GET', params)

//地址详情
export const getUserAddressInfo = params => request.globalRequest(`/api/v1/appUser/getUserAddressInfo`, 'GET', params)


